// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue'; // 引入首页组件
import Config from '../views/Config.vue'; // 引入配置页面
import ConfigEdge from '../views/ConfigEdge.vue'; 


const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/config',
    name: 'Config',
    component: Config,
  },
  {
    path: '/config-edge',
    name: 'ConfigEdge',
    component: ConfigEdge,
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
